#include <ros/ros.h>
#include "srv_demo/CallAdd.h"
#include <string>
#include <iostream>
int main(int argc, char **argv)
{
  ros::init(argc, argv, "client");
  ros::NodeHandle nh;
  ros::ServiceClient client = nh.serviceClient<srv_demo::CallAdd>("calladd");
  srv_demo::CallAdd srv;
  float t;
  srv.request.x=0;
    srv.request.y=0;
    std::cout << "x: ";
    std::cin >> t;

     srv.request.x = t;
    std::cout << "y: ";
    std::cin >>t ;
    srv.request.y = t;
    if (client.call(srv))
      {
        ROS_INFO("x add y equl %f",srv.response.z) ;
      }
  return 0;
}
